
package cn.edu.scau.cmi.hombio.service;

import cn.edu.scau.cmi.hombio.domain.PreventionType;
import cn.edu.scau.cmi.hombio.domain.Task;
import cn.edu.scau.cmi.hombio.domain.TaskPrevention;

import java.util.List;
import java.util.Set;

/**
 * Spring service that handles CRUD requests for TaskPrevention entities
 * 
 */
public interface TaskPreventionService {

	/**
	* Return a count of all TaskPrevention entity
	* 
	 */
	public Integer countTaskPreventions();

	/**
	* Delete an existing Task entity
	* 
	 */
	public TaskPrevention deleteTaskPreventionTask(Integer taskprevention_id, Integer related_task_id);

	/**
	* Delete an existing TaskPrevention entity
	* 
	 */
	public void deleteTaskPrevention(TaskPrevention taskprevention);

	/**
	* Return all TaskPrevention entity
	* 
	 */
	public List<TaskPrevention> findAllTaskPreventions(Integer startResult, Integer maxRows);

	/**
	* Save an existing PreventionType entity
	* 
	 */
	public TaskPrevention saveTaskPreventionPreventionType(Integer id, PreventionType related_preventiontype);

	/**
	* Save an existing TaskPrevention entity
	* 
	 */
	public void saveTaskPrevention(TaskPrevention taskprevention_1);

	/**
	* Load an existing TaskPrevention entity
	* 
	 */
	public Set<TaskPrevention> loadTaskPreventions();

	/**
	 */
	public TaskPrevention findTaskPreventionByPrimaryKey(Integer id_1);

	/**
	* Save an existing Task entity
	* 
	 */
	public TaskPrevention saveTaskPreventionTask(Integer id_2, Task related_task);

	/**
	* Delete an existing PreventionType entity
	* 
	 */
	public TaskPrevention deleteTaskPreventionPreventionType(Integer taskprevention_id_1, Integer related_preventiontype_id);
}